package cn.fl.warrant.service;

import java.util.List;

import cn.fl.warrant.vo.ArcMgrDetailVO;
import cn.fl.warrant.vo.ArcMgrMainVO;
import cn.fl.warrant.vo.ArcRouteDetailVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import fl.warrant.facade.archive.condition.ArcMgrMainQC;
import fl.warrant.facade.archive.condition.ArcRouteDetailQueryCondition;

/**
 * @Description: 巡检明细表 客户端服务层接口
 * @Description: 持久层方法名称前缀：新增：insert* 删除：delete* 修改：update* 批量：batch* 查询对象：select* get* find* 查询集合：select*
 * @Description: 业务层方法名称前缀：新增：add* 删除：remove* 修改：modify* 查询对象：select* get* 批量：batch* 查询集合：search*
 */
public interface IArcRouteDetailService {
	
	/**
	 * 获取唯一对象
	 * @param id 主键
	 * @return 对象DTO
	 */
	public ArcRouteDetailVO selectById(Long id)throws BaseException;
	
	/**
	 * 新增
	 * @param entity
	 * @return
	 */
    public Long add(ArcRouteDetailVO entity) throws BaseException;

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean removeById(Long id)throws BaseException;
    
    /**
     * 删除
     * @param ids
     * @return
     */
    public boolean removeByIds(List<Long> ids)throws BaseException;

    /**
     * 修改
     * @param entity
     * @return
     */
    public boolean modify(ArcRouteDetailVO entity)throws BaseException;

    /**
     * 分页查询所有
     * @param page
     * @return
     */
    public Pager searchListPage(Pager page)throws BaseException;
    
    /**
	 * 不分页查询
	 */
	 public List<ArcRouteDetailVO> searchList(ArcRouteDetailQueryCondition condition) throws BaseException;
	 
	 /**
	 * 不分页查询(随机获取巡检明细)
	 */
	 public List<ArcMgrMainVO> getRandomRouteList(ArcMgrMainQC condition) throws BaseException;
	 
	 /**
	 * 批量新增
	 * @param vos
	 * @return
	 */
    public boolean batchAddDetailInfo(List<ArcRouteDetailVO> vos) throws BaseException;
    
    /**
	 * 作废巡检明细数据
	 * @param mainId
	 * @return
	 */
    public boolean cancelDetailInfo(Long mainId) throws BaseException;
	
    /**
	 * 批量修改档案管理明细数据
	 * @param vos
	 * @return
	 */
    public boolean batchUpdateMgrDetailInfo(List<ArcMgrDetailVO> vos) throws BaseException;

	 /**
     * 导出巡检详情excel
     * @return
     */
	public String exportRouteDetail(ArcRouteDetailQueryCondition qc, String eFlag);
}
